Defines Student's T-Distribution.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=real64), | public | :: | dof |
The number of degrees of freedom. |
Computes the cumulative distribution function.
The CDF for Student's T-Distribution is given as where .
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(t_distribution), | intent(in) | :: | this |
The t_distribution object. |
||
| real(kind=real64), | intent(in) | :: | x |
The value at which to evaluate the function. |
The value of the function.
Gets the defined range for the distribution.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(distribution), | intent(in) | :: | this |
The distribution object. |
The defined range of the probability distributions [min, max]. In the event that either min or max are infinite, a value of huge(0.0d0) is returned as opposed to infinite to avoid possible issues with using these values directly.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(t_distribution), | intent(in) | :: | this |
Distribution with valid parameters. |
||
| real(kind=real64), | intent(in) | :: | x |
Evaluation point. |
Log probability; zero probability gives -infinity, invalid inputs NaN.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(t_distribution), | intent(in) | :: | this |
Distribution with valid parameters. |
||
| real(kind=real64), | intent(in) | :: | x |
Evaluation point; discrete masses require integer-valued x. |
Log density; outside support gives -infinity, invalid inputs give NaN. An integrable density singularity at a support endpoint gives +infinity.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(t_distribution), | intent(in) | :: | this |
Distribution with valid parameters. |
||
| real(kind=real64), | intent(in) | :: | x |
Evaluation point. |
Log probability; zero probability gives -infinity, invalid inputs NaN.
Computes the mean of the distribution.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(t_distribution), | intent(in) | :: | this |
The t_distribution object. |
The mean.
Computes the median of the distribution.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(t_distribution), | intent(in) | :: | this |
The t_distribution object. |
Computes the mode of the distribution.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(t_distribution), | intent(in) | :: | this |
The t_distribution object. |
The mode.
Computes the probability density function.
The PDF for Student's T-Distribution is given as .
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(t_distribution), | intent(in) | :: | this |
The t_distribution object. |
||
| real(kind=real64), | intent(in) | :: | x |
The value at which to evaluate the function. |
The value of the function.
Recenters the distribution about the supplied value. This routine has no effect for this distribution as it is always centered about 0.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(t_distribution), | intent(inout) | :: | this |
The t_distribution object. |
||
| real(kind=real64), | intent(in) | :: | x |
The value about which to recenter. |
Computes the standardized variable for the distribution.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(distribution), | intent(in) | :: | this |
The distribution object. |
||
| real(kind=real64), | intent(in) | :: | x |
The value of interest. |
The result.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(t_distribution), | intent(in) | :: | this |
Distribution with valid parameters. |
||
| real(kind=real64), | intent(in) | :: | x |
Evaluation point; discrete tails include masses strictly above x. |
Probability on [0, 1]; invalid parameters or NaN x give NaN.
Computes the variance of the distribution.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(t_distribution), | intent(in) | :: | this |
The t_distribution object. |
The variance.